<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="deviceTypeList" checkbox="true" fitColumns="true" title="设备信息" actionUrl="roomDeviceController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建人名称"  field="createName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建人登录名称"  field="createBy"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建日期"  field="createDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新人名称"  field="updateName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新人登录名称"  field="updateBy"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新日期"  field="updateDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="品牌"  field="brand.brandName"  hidden="true" query='true' queryMode="single"  width="120"></t:dgCol> 
   <t:dgCol title="型号"  field="model.modelName"    queryMode="single"  width="120" query="true"></t:dgCol> 
   <t:dgCol title="设备编号"  field="deviceNo"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="RFID号"  field="rfidNo"  hidden="true"  queryMode="single"  width="120"></t:dgCol>   
   <t:dgCol title="名称"  field="name"    queryMode="single"  width="120" query="true"></t:dgCol>
   
   <t:dgCol title="所属行号"  field="rowNumber"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="所属列号"  field="colNumber"    queryMode="single"  width="120"></t:dgCol> 
   
    <t:dgCol title="楼栋"  field="computerRoom.buildingNo"  hidden="true"   queryMode="single"  width="120"></t:dgCol>
   
   <t:dgCol title="机房"  field="computerRoom.roomNo"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="状态"  field="state.name"  dictionary="device_state"   queryMode="single"  width="60" align="center"></t:dgCol>
   <t:dgCol title="单价"  field="price"    queryMode="single"  width="100" align="right"></t:dgCol>
<%--    <t:dgCol title="备注"  field="remark"    queryMode="single"  width="120"></t:dgCol>
 --%>
    <t:dgCol title="操作" field="opt" width="130"></t:dgCol>
   <t:dgDelOpt title="删除" url="roomDeviceController.do?doDel&id={id}" />
   <t:dgToolBar title="录入机房设备" icon="icon-add" url="roomDeviceController.do?goAdd" funname="add" width="960" height="410"></t:dgToolBar>
   <t:dgToolBar title="编辑" icon="icon-edit" url="roomDeviceController.do?goUpdate" funname="update" width="960" height="410"></t:dgToolBar>
   <t:dgToolBar title="批量删除"  icon="icon-remove" url="roomDeviceController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
   <t:dgToolBar title="查看" icon="icon-search" url="roomDeviceController.do?goUpdate" funname="detail" width="960" height="460"></t:dgToolBar>
 <%--   <t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>
   <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
   <t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar> --%>
  </t:datagrid>
  </div>
 </div>
 <script type="text/javascript">

 
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'deviceTypeController.do?upload', "deviceTypeList");
}

//导出
function ExportXls() {
	JeecgExcelExport("deviceTypeController.do?exportXls","deviceTypeList");
}

//模板下载
function ExportXlsByT() {
	JeecgExcelExport("deviceTypeController.do?exportXlsByT","deviceTypeList");
}
 </script>